package com.gitee.feizns.quickstart.jackson.annotation;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.gitee.feizns.quickstart.jackson.deserializer.DeduplicatingListDeserializer;
import com.gitee.feizns.quickstart.jackson.serializer.DeduplicatingListSerializer;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author feizns
 * @since 2025/8/5
 */
@JacksonAnnotationsInside
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
@JsonDeserialize(using = DeduplicatingListDeserializer.class)
@JsonSerialize(using = DeduplicatingListSerializer.class)
public @interface JsonDeduplicate {

}
